FROM alpine

LABEL maintainer="wyzerg@163.com"
USER root

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
RUN apk update
RUN apk add --no-cache openrc git curl wget tar bash python2 python2-dev py-pip

RUN rm -rf /var/cache/apk/*

RUN pip install DingtalkChatbot -i https://pypi.tuna.tsinghua.edu.cn/simple

WORKDIR /workdir

COPY dingtalk.py /workdir/
